﻿module Runner {
    export class Preloader extends Phaser.State {
        level: Level;
        preload() {
            var background;
            var pBackground;
            

            this.load.spritesheet('Coin', 'Graphics/coin.png', 16, 16, 16);
            this.load.spritesheet('Hero', 'Graphics/Hero.png', 64, 64);
            this.load.spritesheet('Skeleton', 'Graphics/Skeleton.png', 64, 64);
            this.load.spritesheet('ArmoredOrc', 'Graphics/armoredOrc.png', 64, 64);

            //this.load.image('BattleBG', 'Graphics/battleBG.png');


        }

        create() {
            this.game.state.add('Level', new Level('Tilemaps/level.json', 'Graphics/platform_tiles.png', 'Graphics/sky_01_0.png', 'Graphics/BG_01.png'), false);
            //
            this.game.state.start('Level', true, false);
        }

        
    }
}